import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [{
        path: '/home1',
        name: 'home',
        component: HomeView
    },
    // {
    //     path: '/',
    //     redirect: 'about'
    // },
    {
        path: '/about',
        name: 'about',
        component: () =>
            import ('../views/AboutView.vue')
    }
]

const router = new VueRouter({
    routes
})

export default router